package cn.hengzhu.main_manager.utils;

import java.io.UnsupportedEncodingException;
import java.util.Base64;
import java.util.Base64.Decoder;

//import org.apache.commons.codec.binary.Base64;
//import org.springframework.format.datetime.joda.MillisecondInstantPrinter;

public class Base64Util {

	/**
	 * BASE64编码
	 * @throws UnsupportedEncodingException 
	 * @throws Exception
	 * 
	 * 
	 **/
	 public static byte[] decode(String encodedText){
	        Decoder decoder = Base64.getDecoder();
	        return decoder.decode(encodedText);
	    }

}